<div class="form-group">
	<label class="col-sm-3 control-label">List Siswa</label>
	<div class="col-sm-9">
		<div class="input-group">
				<?php 
				if(count($list_siswa)>0) 
				{
					foreach ($list_siswa as $row)
					{
				?>

					<div class="checkbox">
						<label>
							<input type="checkbox" name="id_bagi_kelas[]" value="<?php echo $row->id_bagi_kelas; ?>"> 
							<?php echo $row->nis; ?> - <?php echo $row->nm_lengkap; ?>
						</label>
					</div>

				<?php 
					}
				}else{
				?>
					<div class="checkbox">
					<label><input type="checkbox" name="kosong" value="kosong" disabled><font color="red">Tidak Ada Data</font></label>
					</div>
			<?php
				}
			?>
		</div>
	</div>
</div>
<?php
if(count($list_siswa)>0) 
{
?>
	<div class="modal-footer">
		<button class="btn btn-default btn-sm" data-dismiss="modal">Batal</button>
		<button type="submit" class="btn btn-primary btn-sm">Tambahkan</button>
	</div>
<?php
}
?>
